package com.spring.boot.enums;

/**
 * Created by Ysoul on 15/11/14.
 */
public enum LoginEnum {
    SUCCESS(0, "成功！"),
    USER_NAME_NULL(1, "用户名不能为空！"),
    PASSWORD_NULL(2, "密码不能为空！"),
    PASSWORD_ERROR(3, "密码错误！"),
    CAPTCHA_NULL(4, "验证码不能为空！"),
    CAPTCHA_ERROR(5, "验证码错误！");

    private Integer code;
    private String msg;

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    LoginEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
